<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<jsp:include page="head.jsp"/>
<%--中间内容开始--%>
<div class="layui-container fly-marginTop fly-user-main">
    <jsp:include page="manger_left.jsp"/>

    <div class="fly-panel fly-panel-user" pad20>

        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
                <li data-type="mine-jie" lay-id="index" class="layui-this">修改文件</li>
            </ul>
            <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 10px 0;">
                <div class="layui-tab-item layui-show">
                    <form:form action="${pageContext.request.contextPath}/fileInfo/student/edit.do" enctype="multipart/form-data" method="post">
                        <div class="layui-form-item">
                            <%--原来的文件信息--%>
                            <input type="hidden" name="fId" value="${file.fId}">
                            <input type="hidden" name="fSize" value="${file.fSize}">
                            <input type="hidden" name="fType" value="${file.fType}">
                            <input type="hidden" name="fPath" value="${file.fPath}">
                            <label for="filename" class="layui-form-label">文件标题</label>
                            <div class="layui-input-inline">
                                <input type="text" id="filename" name="fName" value="${file.fName}" required lay-verify="required" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label for="fState" class="layui-form-label">文件说明</label>
                            <div class="layui-input-block">
                                <textarea placeholder="请输入内容" id="fState" name="fState" class="layui-textarea">${file.fState}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label for="uploadFile" class="layui-form-label">选择文件</label>
                            <div class="layui-input-inline">
                                <input type="file" id="uploadFile" name="uploadFile"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <button type="submit" class="layui-btn" lay-filter="*" lay-submit>立即修改</button>
                        </div>
                    </form:form>
                </div>
            </div>
        </div>
    </div>
</div>
<%--中间内容结束--%>
<jsp:include page="bottom.jsp"/>
